package com.ayf.payment.game.api.mapper;

import com.ayf.payment.game.api.dto.criteria.MerchantBankCriteria;
import com.ayf.payment.game.api.entity.MerchantBank;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface MerchantBankMapper extends Mapper<MerchantBank> {
    /**
     * 更新银行卡状态
     *
     * @param merchantBank
     * @return
     */
    int updateBankStatus(@Param("merchantBank") MerchantBank merchantBank);

    /**
     * 查询银行卡变更记录
     *
     * @param merchantBankCriteria
     * @return
     */
    List<MerchantBank> selectList(@Param("bank") MerchantBankCriteria merchantBankCriteria);

    MerchantBank getMerchantBankByMid(@Param("mId") Integer merchantId);
}